package com.cloud.controller;


import com.cloud.entity.TAccount;
import com.cloud.service.AccountHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@Slf4j
@RestController
public class AccountController {

    @Resource
    AccountHandler AccountHandler;

    @RequestMapping(value = "/account/money")
    public String create() {
        String message = "创建订单成功！";
        TAccount TAccount = new TAccount();
        TAccount.setTotal(99999L);
        AccountHandler.createAccount(TAccount);
        return message;
    }
}

